/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package servicios;

import dao.PrestamoDaoLocal;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import modelo.Prestamo;

/**
 *
 * @author ADM
 */
@Stateless
public class PrestamoLn implements PrestamoLnLocal {
    @EJB
    private PrestamoDaoLocal prestamoDao;

    public void registrar(Prestamo prestamo) {
        prestamoDao.crear(prestamo);
    }

    public void modificar(Prestamo prestamo) {
        prestamoDao.editar(prestamo);
    }

    public void eliminar(Prestamo prestamo) {
        prestamoDao.remover(prestamo);
    }

    public List<Prestamo> getLista() {
        return null;
    }









    
    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")
 
}
